<template>
	<view class="my-info">
		<view class="avatar">自我介绍</view>
		<view class="content">
			<view class="myitem">
				<u-input v-model="value" :type="type" :border="border" :selection-start="start" maxlength=500 placeholder="做个自我介绍叭~"/>
			</view>
			<button type="default" class="mybutton" @click="next()">下一步</button>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: '',
				start:50,
				type: 'textarea',
				height: 210,
				autoHeight: true,
			}
		},
		methods: {
			onLoad() {

			},
			next(){
				uni.setStorage({
					key:'introduce-info',
					data:this.value,
					success() {
						console.log("存储成功")
						uni.navigateTo({
							url: "../work-info/work-info"
						})
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.my-info {
		background: rgba(224, 226, 252, 0.6);
		min-height: 100vh;
		height: auto;
		padding-bottom: 30rpx;
	}

	.avatar {
		height: 100rpx;
		padding: 20px 0;
		font-size: 30rpx;
		color: #928cd6;
		font-weight: 600;
		width: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.content {
		margin: 0 30rpx;
	}

	.myitem {
		background-color: #ffffff;
		width: 100%;
		padding: 18rpx 0;
		border-radius: 20rpx;
		box-sizing: border-box;
		box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1);
		margin-bottom: 40rpx;
		background-size: 100% 100%;
	}

	.mybutton {
		background-color: #ffffff;
		width: 100%;
		height: 90rpx;
		font-size: 27rpx;
		color: #928cd6;
		border-radius: 20rpx;
		box-sizing: border-box;
		box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1);
		margin-bottom: 20rpx;
		line-height: 96rpx;
	}
</style>
